<?php

namespace App\Models;

use Framework\BaseModel;
use Framework\ModelEncryptionTrait;


/**
 * App\Models\UserAuthModel
 *
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel query()
 * @mixin \Eloquent
 * @property int $user_id 用户id
 * @property string $idcard_name 真实姓名
 * @property string $idcard_num 身份证号-加密
 * @property string $card_name 证件名称
 * @property string $idcard_a_img 身份证正面
 * @property string $idcard_b_img 身份证反面
 * @property string|null $card_paths 其他认证图片
 * @property string|null $idcard_end_time 身份证过期时间
 * @property string|null $add_time 实名时间
 * @property string|null $pass_time 认证通过时间
 * @property string|null $idcard_address 地址
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereAddTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereCardName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereCardPaths($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereIdcardAImg($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereIdcardAddress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereIdcardBImg($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereIdcardEndTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereIdcardName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereIdcardNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel wherePassTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserAuthModel whereUserId($value)
 */
class UserAuthModel extends BaseModel
{
    use ModelEncryptionTrait;
    protected $table = 'user_auth';

    protected $primaryKey = 'user_id';


    protected $encryptable = ['idcard_num'];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */


    public $timestamps = false;
}
